package com.iotek.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.iotek.dao.IPaymentDao;
import com.iotek.entity.Order;
import com.iotek.entity.Payment;
import com.iotek.service.IPaymentService;

@Service()
public class PaymentServiceImpl implements IPaymentService {
	@Resource
	private IPaymentDao paymentDao;

	@Override
	public boolean deletePayment(Payment payment) {
		return paymentDao.deletePayment(payment);
	}

	@Override
	public List<Payment> findPayment(Payment payment) {
		return paymentDao.findPayment(payment);
	}

	@Override
	public boolean updateOrderState(Order order) {
		return paymentDao.updateOrderState(order);
	}

	@Override
	public Order findOrder(Order order) {
		return paymentDao.findOrder(order);
	}

	@Override
	public boolean addPayment(Payment payment) {
		return paymentDao.addPayment(payment);
	}

	@Override
	public boolean updateOrderState1(Order order) {
		return paymentDao.updateOrderState1(order);
	}
	

}
